import LDataStone from "./LDataStone";
export default class LDataStoneManager 
{
    public static dataList:LDataStone[] = [];
    public static GetDataById(index:number):LDataStone
    {    
        if(LDataStoneManager.dataList.length == 0){
            LDataStoneManager.dataList[0] = new LDataStone(0,40,false,1,2.5,2.5,2,1.5);
            LDataStoneManager.dataList[1] = new LDataStone(1,60,true,2,3.5,3.5,3,2.5);
            LDataStoneManager.dataList[2] = new LDataStone(2,96,true,4,5.5,5.5,4.5,4);
            LDataStoneManager.dataList[3] = new LDataStone(3,120,true,8,7,7,6,5);
        }
        return LDataStoneManager.dataList[index]
    }
}
